	cd $tmpdir
	
	# Grab latest sources for freetype
	if [ ! -d $netsurfsrcdir ]; then
		wget $netsurfmirror/$netsurf
		tar -xf $netsurf
	fi
	
	cd $netsurfsrcdir
	
	cat > env.sh <<'EOF'
    #!/bin/sh
    export PKG_CONFIG_PATH=/freon/lib/pkgconfig::
    export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/freon/lib
    export PREFIX=/freon
EOF

	chmod +x env.sh
	
	./env.sh
	
	make PREFIX=$freondir -j$corecount install

	cd $tmpdir
